/**
 * 
 */
package com.ychs.corejava.lesson5;

import java.util.Scanner;

/**
 * 测试Calc类
 * @author LENOVO
 * @version 1.0
 */
public class CalcTest {
	public static void main(String[] args) {
		Calc calc = new Calc();
		Scanner scanner = new Scanner(System.in);//接收键盘数据
		System.out.println("请输入第一个数字：");
		int num1 = scanner.nextInt();
		
		System.out.println("请输入第二个数字：");
		int num2 = scanner.nextInt();
		
		int addResult = calc.add(num1,num2);
		System.out.println("加法结果： "+ addResult);
		
		int subResult = calc.sub(num1,num2);
		System.out.println("减法结果： "+ subResult);
		
		int mulResult = calc.mul(num1,num2);
		System.out.println("乘法结果： "+ mulResult);
		
		double divResult = calc.div(num1,num2);
		System.out.println("除法结果： "+ divResult);
		
		int modResult = calc.mod(num1,num2);
		System.out.println("求余结果： "+ modResult);
		
		System.out.println(3+2+"China");
		System.out.println("China"+3+2);
	}
}
